package com.af.monitorModule.generator.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lyz_4dou
 * @since 2021-02-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Company implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    private String companyName;

    /**
     * 服务器远程方式
     */
    private String companyRemoteMode;

    /**
     * 客户联系人
     */
    private String companyContact;

    /**
     * 服务器配置等信息
     */
    private String companyMachineInformation;

    /**
     * 服务器部署信息
     */
    private String companyDeployInformation;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createDate;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateDate;

    /**
     * 钉钉的群链接
     */
    private String ddGroupLink;

    /**
     * 状态
     */
    private Integer state;

    @Version
    private Integer version;


}
